const db = require("./db")

const proObj = new db.Schema({
        proId: { type: String },
        proName: { type: String },
        mold: { type: String },
        brand: { type: String },
        logo: { type: String },
        proImg: { type: String },
        price: { type: Number },
        describe: { type: String },
        stock: { type: Number },
        sales: { type: Number },
        discount: { type: Number },
        grade: { type: Number }
    })
    // 创建完集合以后暴露出集合
module.exports = db.model("pro", proObj);